package com.eascs.fp.common.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * 消息之短信
 *
 */
@Entity
@Table(name="fp_msg_sms")
@NamedQuery(name="MsgSmsEntity.findAll", query="SELECT l FROM MsgSmsEntity l")
public class MsgSmsEntity implements Serializable {
	private static final long serialVersionUID = 5558562224678274153L;
	
	@Id
	private String id;
	
	@Column(name="sms_type")
	private int smsType;
	
	@Column(name="template_code")
	private String templateCode;
	
	@Column(name="phone_receiver")
	private String phoneReceiver;
	
	@Column(name="sms_content")
	private String smsContent;
	
	@Column(name="sms_status")
	private int smsStatus;
	
	@Column(name="failure_mins")
	private int failureMins;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="update_time")
	private Date updateTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public int getSmsType() {
		return smsType;
	}

	public void setSmsType(int smsType) {
		this.smsType = smsType;
	}

	public String getTemplateCode() {
		return templateCode;
	}

	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public String getPhoneReceiver() {
		return phoneReceiver;
	}

	public void setPhoneReceiver(String phoneReceiver) {
		this.phoneReceiver = phoneReceiver;
	}

	public String getSmsContent() {
		return smsContent;
	}

	public void setSmsContent(String smsContent) {
		this.smsContent = smsContent;
	}

	public int getSmsStatus() {
		return smsStatus;
	}

	public void setSmsStatus(int smsStatus) {
		this.smsStatus = smsStatus;
	}

	public int getFailureMins() {
		return failureMins;
	}

	public void setFailureMins(int failureMins) {
		this.failureMins = failureMins;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
